package com.zhku.shoppingspringboot.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhku.shoppingspringboot.pojo.entity.goodsData.Properties;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author hwy
 * @date 2025-01-02 21:48
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@TableName("order_skus")
public class OrderSkus {
    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty("ID")
    private Long id;

    @ApiModelProperty("订单id")
    private Long orderId;

    @ApiModelProperty("商品id")
    private Long goodsId;

    /**
     * 商品属性
     */
    @ApiModelProperty("商品属性")
    private String attrsText;
    /**
     * 商品数量
     */
    @ApiModelProperty("商品数量（购买的数量）")
    private Long count;


    @ApiModelProperty("原始价格")
    private Float oldPrice;

    @ApiModelProperty("现价格")
    private Float Price;

    @ApiModelProperty("实付金额")
    private Float totalPayPrice;

    @ApiModelProperty("图片")
    private String picture;

    @ApiModelProperty("spu id")
    private String spuId;

}
